int G89[2][3] = {
	5, 0, 3, 3, 0, 5
};

int K1806[3][5] = {
	7, 5, 0, 3, 8,
	6, 4, 5, 2, 0,
	6, 4, 1, 2, 0
};

int mat_mul(int a[2][3], int b[3][5], int p[2][5])
{
	int i = 0, j = 0, k = 0;
	while (i < 2)
	{
		while (j < 5)
		{
			p[i][j] = 0;
			while (k < 3)
			{
				p[i][j] = p[i][j] + a[i][k] * b[k][j];
				k = k + 1;
			}
			j = j + 1;
		}
		i = i + 1;
	}
	return i + j + k;
}

int main()
{
	double x = 953.06;
	int p[2][5];
	int y = 0;
	if (x - 123.06 > 2.0)
		y = mat_mul(G89, K1806, p);
	return p[0][2] + y;
}
